home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / misc / cpuload2.rea < prev    next >
Text File  |  1995-10-02  |  4KB  |  84 lines

  1. Short:    Xload like, major bugfix, tooltypes
  2. Author:   Thomas.Radtke@rz.uni-osnabrueck.de
  3. Uploader: Thomas.Radtke@rz.uni-osnabrueck.de
  4. Type:     util/moni
  5.  
  6.   This is the successor/replacement of CPULoad 1.0. The following changes
  7. were made:
  8.  
  9. - message handling changed, bugfix !
  10. - obsolete IRQ server removed
  11. - compiled w/ Aztec C, i.e. no ixemul.library needed
  12. - method of calibration changed
  13. - the doc file of CPULoad is not part of this distribution
  14. - tooltypes for window size and position added
  15.   (Hallo Lars, ich hoffe das ist ok so. Hat ein bischen gedauert. Deine
  16.   EMail hab ich verschludert, darum gabs keine Antwort :( )
  17.  
  18.   Note1: The calibration (determination of maximum cycles [w/o units]) is now
  19. consistent with all compilers, however, it is not 100 percent exact. I know
  20. the reason why, but it is hard, if not impossible, to correct it. The error
  21. is very small.
  22.  
  23.   Note2: One (ex I think ;) -user told me this code slows down his hard drive.
  24. I dont have such problems and asked him for his config, but got no reply.
  25. If you want to report things, please never forget to include the most
  26. complete sys description you can get. This is usefull for me to improve
  27. the program.
  28.  
  29.   Intro: To get the most out of this code, it is a must to understand what
  30. it does. Many people have tried to use this as a toy. Bad fault. The black
  31. vertical bars are used cycles, the white ones are free cycles. This measurement
  32. _is_ exact. If the actual black bar goes from bottom to top of the window,
  33. there are no free cycles left in your system. This means all new tasks or
  34. interrupts will slow down the machine. This is not a problem if the havy
  35. loading task has a low priority and does a busyloop (waiting for something
  36. w/o using OS functions). Check VChess on this. You will see a full load
  37. at input time of VChess. Cycle usages will add in a linear way (You might
  38. have expected that ;). For example, you can measure the used cycles of your
  39. preferred wb-game or mod player and _know_ wheather it will slow down
  40. another application or not. For me, this is the most usefull thing I do
  41. with CPULoad :). This way I have found a few fun programs wich can be run
  42. in the background while doing more serious things with my amiga, e.g.
  43. playing WBTetris (the best fun/cycle_usage ratio !) while computing
  44. lyapunov exponents.
  45.  
  46.   Requirements: OS2.04 or higher versions if you want to have tooltypes,
  47. but should run on any amiga.
  48.  
  49.   Usage: Start this either via icon or from shell. It should be detached
  50. from cli-process, i.e. run <nil: >nil: cpuload. The following tooltypes/
  51. arguments exists:
  52.  
  53.  XPOS         horizontal window offset
  54.  YPOS         vertical window offset
  55.  XSIZE        width of window
  56.  YSIZE        hight of window
  57.  
  58. Example: run <nil: >nil: cpuload xpos=50 ypos=50 will place the window
  59. @ pos 50,50.
  60.  
  61.   Technical: CPULoad process does a busy loop at low (-127) priority.
  62. In the loop the machine waits for a break condition and increments a
  63. counter. If no program run at priority of -126 or higher at one cycle,
  64. that cycle is determined as free. Another task at high priority reads this
  65. counter every 1/10 secs (the wait states are OS friendly, i.e. no busy loop)
  66. and computes (with a numerical trick :) the new bar in the graphical CPULoad
  67. history. No floating points are used but also no rounding errors exists.
  68. AFAIK the method of measuring was introduced by Lindsay Meek (check IdleLED),
  69. too bad that this was not my idea ;).
  70.  
  71.   Legal: This archive is freeware and (C) 1995 Thomas Radtke. Redistribute it
  72. only with this readme file intact and for non-profit reasons. Thank you.
  73.  
  74.   A final note: Meanwhile a dozent or so programs of this kind were thrown
  75. at aminet or other PD sites. The reason for using this version is that it
  76. is totally transparent. I told you what it does and I delivered the source.
  77. It should be 100% bugfree now and its measuring is exact. Enough reasons ?
  78.  
  79. Thomas
  80.  
  81. P.S.: Look out for julia3 coming soon on aminet, also bugfixed (took a long
  82. time to see what went wrong in my standart message handling). Many other
  83. utils should be finished after first of november, since Im unemployed then :(.
  84.